package main

import (
	"fmt"
	"ginGo/conf"
	"ginGo/controllers"
	"net/http"
)

// 入口函数
func main() {
	api := controllers.InitRouter()
	server := &http.Server{Handler: api}
	server.Addr = conf.SystemConfig.Listen

	if err := server.ListenAndServe(); err != nil {
		fmt.Errorf(err.Error())
		return
	}
}
